package com.mxx.bu_yang.dialog;

import android.os.Handler;

import com.mxx.bu_yang.R;
import com.yp.loading.base.BaseDialog;

/**
 * 作者：刘江飞
 * 时间：2020/10/15  9:03
 * 邮箱：642371742Z@qq.com
 * 描述：扫描成功
 **/
public class ScanSuccessDialog extends BaseDialog {
    @Override
    public boolean isCancelable() {
        return false;
    }

    @Override
    protected boolean isCancelOutside() {
        return false;
    }

    /**
     * Sets layout id.
     *
     * @return the layout id
     */
    @Override
    protected int setLayoutId() {
        return R.layout.dialog_scan_success;
    }

    @Override
    public void onResume() {
        super.onResume();
        new Handler().postDelayed(this::dismiss, 3000);
    }
}
